﻿using Castle.Windsor;
using Wolfbyte.Core.InversionOfControl;

namespace WaterCooler.Infrastructure.Windsor
{
    public class WindsorContainerWrapper : IContainer
    {
        IWindsorContainer InnerContainer;

        public WindsorContainerWrapper(IWindsorContainer InnerContainer)
        {
            this.InnerContainer = InnerContainer;
        }

        #region IContainer Members

        public T Resolve<T>()
        {
            return InnerContainer.Resolve<T>();
        }

        public T Resolve<T>(string key)
        {
            return InnerContainer.Resolve<T>(key);
        }

        #endregion
    }

}